<div class="modal" style="display: block;">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close" ui-sref="^">
          <span aria-hidden="true">×</span>
        </button>
        <h4 class="modal-title" ng-bind="current_bread"></h4>
      </div>
      <div class="modal-body">
        <form class="form-horizontal" id="audit_sub_modal">
          <div class="form-group">
            <label class="col-sm-2 control-label">账期<span class="required">*</span></label>
            <div class="col-sm-3">
              <input type="text" class="form-control date-input" id="account_period" name="account_period" ng-model="data.account_period">
            </div>
            <div class="col-sm-3">
              <input type="text" class="form-control date-input" id="account_period2" name="account_period2" ng-model="data.account_period2">
            </div>
          </div>
          <div class="form-group">
            <label class="col-sm-2 control-label">年结日</label>
            <div class="col-sm-3">
              <select class="form-control select2" name="date_year_end1" ng-model="data.date_month_end">
                <option value="">选择月份</option>
                <option value="1">1月</option>
                <option value="2">2月</option>
                <option value="3">3月</option>
                <option value="4">4月</option>
                <option value="5">5月</option>
                <option value="6">6月</option>
                <option value="7">7月</option>
                <option value="8">8月</option>
                <option value="9">9月</option>
                <option value="10">10月</option>
                <option value="11">11月</option>
                <option value="12">12月</option>
              </select>
            </div>
            <div class="col-sm-3">
              <select class="form-control select2" name="date_year_end2" ng-model="data.date_day_end">
                <option value="">选择日期</option>
                <option value="1">1日</option>
                <option value="2">2日</option>
                <option value="3">3日</option>
                <option value="4">4日</option>
                <option value="5">5日</option>
                <option value="6">6日</option>
                <option value="7">7日</option>
                <option value="8">8日</option>
                <option value="9">9日</option>
                <option value="10">10日</option>
                <option value="11">11日</option>
                <option value="12">12日</option>
                <option value="13">13日</option>
                <option value="14">14日</option>
                <option value="15">15日</option>
                <option value="16">16日</option>
                <option value="17">17日</option>
                <option value="18">18日</option>
                <option value="19">19日</option>
                <option value="20">20日</option>
                <option value="21">21日</option>
                <option value="22">22日</option>
                <option value="23">23日</option>
                <option value="24">24日</option>
                <option value="25">25日</option>
                <option value="26">26日</option>
                <option value="27">27日</option>
                <option value="28">28日</option>
                <option value="29">29日</option>
                <option value="30">30日</option>
                <option value="31">31日</option>
              </select>
            </div>
          </div>
          <!-- <div class="form-group">
            <label class="col-sm-2 control-label">营业额</label>
            <div class="col-sm-4">
              <input type="text" class="form-control" name="turnover" ng-model="data.turnover" data-rule-money="[/^(([1-9]\d{0,9})|0)(\.\d{1,2})?$/, '请填写2位数的数值']" data-rule="money;">
            </div>
            <div class="col-sm-2">
              <select ui-select2 class="form-control select2" id="currencySelect3" name="turnover_currency" ng-model="data.turnover_currency" url="Dictionary/DroplistByGroup" paging="false" paramfield="group" paramvalue="币别"></select>
            </div>
          </div> -->
          <div class="form-group">
            <label class="col-sm-2 control-label">银行入账金额</label>
            <div class="col-sm-6">
              <input type="text" class="form-control" name="amount_bank" ng-model="data.amount_bank" data-rule-money="[/^(([1-9]\d{0,9})|0)(\.\d{1,2})?$/, '请填写2位数的数值']" data-rule="money;">
            </div>
          </div>
          <div class="form-group">
            <label class="col-sm-2 control-label">单据量</label>
            <div class="col-sm-6">
              <input type="text" class="form-control" name="bill_number" ng-model="data.bill_number" data-rule="digits;">
            </div>
          </div>
          <div class="form-group">
            <label class="col-sm-2 control-label">会计准则</label>
            <div class="col-sm-6">
              <input type="text" class="form-control" name="accounting_standard" ng-model="data.accounting_standard" data-rule="length[~50];">
            </div>
          </div>
          <div class="form-group">
            <label class="col-sm-2 control-label">做账费用</label>
            <div class="col-sm-6">
              <input type="text" class="form-control" name="cost_accounting" ng-model="data.cost_accounting" data-rule-money="[/^(([1-9]\d{0,9})|0)(\.\d{1,2})?$/, '请填写2位数的数值']" data-rule="money;">
            </div>
          </div>
          <div class="form-group">
            <label class="col-sm-2 control-label">成交日期</label>
            <div class="col-sm-6">
              <input type="text" class="form-control date-input" id="date_transaction" name="date_transaction" ng-model="data.date_transaction" data-rule="">
            </div>
          </div>
          <div class="form-group">
            <label class="col-sm-2 control-label">成交金额</label>
            <div class="col-sm-6">
              <input type="text" class="form-control" name="amount_transaction" ng-model="data.amount_transaction" data-rule-money="[/^(([1-9]\d{0,9})|0)(\.\d{1,2})?$/, '请填写2位数的数值']" data-rule="money;">
            </div>
          </div>
          <div class="form-group">
            <label class="col-sm-2 control-label">交易币别</label>
            <div class="col-sm-6">
              <select ui-select2 class="form-control select2" id="currencySelect2" name="currency" ng-model="data.currency" url="Dictionary/DroplistByGroup" paging="false" paramfield="group" paramvalue="币别" data-rule=""></select>
              <span id="currencySelect2-validator" class="select-validator"></span>
            </div>
          </div>
          <div class="form-group">
            <label class="col-sm-2 control-label">汇率</label>
            <div class="col-sm-6">
              <input type="text" class="form-control" name="rate" ng-model="data.rate" data-rule-money="[/^(([1-9]\d{0,9})|0)(\.\d{1,2})?$/, '请填写2位数的数值']" data-rule="money;">
            </div>
          </div>
          <div class="form-group">
            <label class="col-sm-2 control-label">其他事项</label>
            <div class="col-sm-6">
              <textarea class="form-control" rows="3" name="description" ng-model="data.description" data-rule="length[~100];"></textarea>
            </div>
          </div>
          <div class="form-group">
            <label class="col-sm-2 control-label">客户归属</label>
            <div class="col-sm-6">
              <input type="text" class="form-control" ng-model="data.salesman" disabled>
              <!-- <select ui-select2 class="form-control select2" id="salesmanSelect2" name="salesman_id" ng-view="salesman" ng-model="data.salesman_id" data-rule="required;" url=" Member/List" paging="true" style="width: 100%;"></select> -->
            </div>
          </div>
          <div class="form-group">
            <label class="col-sm-2 control-label">订单归属</label>
            <div class="col-sm-6">
              <input type="text" class="form-control" ng-model="data.creator" disabled>

              <!-- <select ui-select2 class="form-control select2" id="assistantSelect2" name="assistant_id" ng-view="assistant_name" ng-model="data.assistant_id" url="Member/List" paging="true" style="width: 100%;"></select> -->
            </div>
          </div>

          <div class="form-group">
            <label class="col-sm-2 control-label">渠道商</label>
            <div class="col-sm-6">
              <select
                ui-select2
                class="form-control select2"
                id="traderSelect2"
                name="trader_id"
                ng-view="trader_name"
                ng-model="data.trader_id"
                data-formatfields="code,text"
                data-formatcaptions="编号,名称"
                url="Customer/SearchForDropdown"
                paging="true"
                style="width: 100%;"
                readonly
              ></select>
              <span id="traderSelect2-validator" class="select-validator"></span>
            </div>
          </div>

          <div class="form-group">
            <label class="col-sm-2 control-label">助理</label>
            <div class="col-sm-6">
              <select ui-select2 class="form-control select2" id="assistantSelect2" name="assistant_id" allowclear="true" ng-view="assistant_name" ng-model="data.assistant_id" url=" Member/List" paging="true" style="width: 100%;"></select>
            </div>
          </div>
          <div class="form-group">
            <label class="col-sm-2 control-label">经理</label>
            <div class="col-sm-6">
              <select ui-select2 class="form-control select2" id="waiterSelect2" name="manager_id" allowclear="true" ng-view="manager_name" ng-model="data.manager_id" url=" Member/List" paging="true" style="width: 100%;"></select>
            </div>
          </div>
        </form>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default pull-left" data-dismiss="modal" ui-sref="^">取消</button>
        <button type="button" class="btn btn-primary" ng-click="save()">保存</button>
      </div>
    </div>
  </div>
</div>
